<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<% 		System.out.println(111);
		Map templatemap = (Map)request.getAttribute("templatemap");
		System.out.println(templatemap);
		String name = request.getParameter("course");
		List templateList = (List)templatemap.get(name);
		templatesOpt = "";
		if (templateList != null && templateList.size() > 0){
			for (int j = 0; j < templateList.size(); j++){
				templatesOpt += "<option value = '" + j + "'>模板" + (j + 1) + "</option>";
			}
		}
		else{
			templatesOpt = "<option value=''>该课程下没有模板！</option>";
		}
		response.getWriter().print(templatesOpt);
%>
